package com.mjk.common.tools.plumelog.service.controller;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * className：Result
 * description：
 * time：2020/6/10  19:20
 *
 * @author Frank.chen
 * @version 1.0.0
 */
@Getter
public class Result {
    public static final Result UN_LOGIN = new Result(401);
    public static final Result INVALID_LOGIN = new Result(402);
    private Integer code;
    private String message;
    private List<String> logs = new ArrayList<>();
    private Object data;

    public Result() {
    }

    public Result(Integer code) {
        this.code = code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setLogs(List<String> logs) {
        this.logs = logs;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
